package book;

public class BookList {
    private Book[] books = new Book[10];
    private int count = 10;
    private int cur;

    public BookList(){//初始化放入三本书
        books[0] = new Book("红楼梦","曹雪芹",66.66,"名著");
        books[1] = new Book("西游记","吴承恩",16.16,"名著");
        books[2] = new Book("三国演义","罗贯中",32.16,"名著");

        cur = 3;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos, Book books) {
        this.books[pos] = books;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getCur() {
        return cur;
    }

    public void setCur(int cur) {
        this.cur = cur;
    }
}
